<style type='text/css'>
table.tb_cuxiao tr.row_over_bg td{
   background-color:#e6eef7;
}
table.tb_cuxiao tr.row_out_bg td{
   background-color:#fff;
}
table.tb_cuxiao{
  display:table;
  width:80%;
  border:1px solid #ccc;
}
table.tb_cuxiao td{
  border-bottom:1px solid  #ccc;
}
table.tb_cuxiao td.top_cuxiao{
border-bottom:1px solid  #ccc;
}
table.tb_cuxiao td.cuxiao_title{
  width:100%;
  height:40px;
  line-height:40px;
  border-bottom:1px solid #9cb8cc;
}

table.tb_cuxiao td div.cuxiao_line1{
  display:block;
  float:left;
  height:20px;
  line-height:30px;
  text-align:left;
  padding-left:5px;
  width:300px;
}
table.tb_cuxiao td div#cuxiao_line1 a{
  width:30px;
  text-align:center;
  height:20px;
  line-height:20px;
  padding-left:5px;
  padding-right:5px;
}
table.tb_cuxiao th{
  height:20px;
  line-height:20px;
}
table.tb_cuxiao th div{
display:block;
  height:20px;
  line-height:20px;
  overflow:hidden;
}
table.tb_cuxiao td div.cuxiao_line2{
  display:block;
  float:right;
  height:20px;
  line-height:20px;
  text-align:right;
  padding-right:5px;
}
table.cuxiao_inner{
display:table;
 margin-left:5px;
 float:left;
 overflow:hidden;
}
table.cuxiao_inner tr td{
 border:0;
 text-align:left;
}
table.cuxiao_inner tr td a.title{
 float:left;
}
table.cuxiao_inner tr td span{
 float:left;
}
.content{
  display:block;
  float:left;
  height:auto;
  line-height:20px;
  padding-right:5px;
}
.count_left{
  display:block;
  width:100px;
  height:20px;
  float:left;
  padding-left:10px;
  overflow:hidden;
}
.page_right{
  display:block;
  width:auto;
  height:20px;
  float:right;
  padding-right:30px;
  overflow:hidden;
}
.Cuxiao_Div{
    display:none;
    width: 430px;
    min-height: 230px;
    border: 2px solid #4478C2;
    background-color:#FFF;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
}
.Cuxiao_Div h2
{
    padding:2px;
    padding-left:5px;
}
.Cuxiao_Div h2 em {
    cursor: pointer;
    display: inline-block;
    height: 11px;
    position: absolute;
    right: 10px;
    width: 11px;
}
.Cuxiao_Div table{
    margin:5px;

}
.Cuxiao_Div table tr td
{
   margin:5px;
}
.red{color:red;}
.green{color:green;}
.yellow{color:yellow;}
</style>

<table class='tb_cuxiao table01' width='100%' cellpadding='5' cellspacing="0">
<tr>
  <td align='left' colspan=4 width='100%'   class='top_cuxiao'>
  <div class="cuxiao_line1" id="cuxiao_line1">
  <select name='cityid'onchange="chg_url('<{$type}>',this.value)">
        <{foreach from=$user_cities item=city }>
		       <option value='<{$city.id}>' <{if $city.id == $city_id }>selected='selected'<{/if}>><{$city.name}></option>
			         <{/foreach}>
					      </select>
  <a href='/cuxiao/list/all/<{$city_id}>/1'>全部</a>|<a href='/cuxiao/list/breakrules/<{$city_id}>/1'>需调整</a>|<a href='/cuxiao/list/removed/<{$city_id}>/1'>已删除</a>
  </div>
  <div class='cuxiao_line2'>
  <form action='' method='post' name='search_name' id='search_name'>
	   <input type='text' name='title' value=''/>
	   <input type='submit' value='确定'>
	</form>
  </div>
  </td>
</tr>
<tr>
<th align='center' width='50%' ><div>促销信息</div></th><th width='30%' align='center'><div>理由</div></th><th align='center'><div>操作人</div></th><th width='10%' align='center'><div>操作</div></th>
</tr>
<{foreach from=$cuxiao_lists  item = ls}>
<tr  onmouseover="this.className='row_over_bg'" onmouseout="this.className='row_out_bg'">
   <td align='left'>
   <table class='cuxiao_inner'>
   <tr>
   <td align='left' width='15%'>促销标题:</td>
   <td align='left'>
   <div style='width:330px;word-wrap:break-word;table-layout:fixed;overflow:hidden;'><a target="_blank" href="<{$ls.url}>"><{$ls.title|mb_substr:0:50}></a></div>
   </td>
   </tr>
   <tr>
   <td align='left'>发布时间:</td>
   <td align='left'>
   <{php}>echo date("Y年m月d日",$this->_tpl_vars['ls']['creat_time']);<{/php}>
   </td></tr>
    <tr>
   <td align='left'>所属店铺:</td>
   <td align='left'>
   <a target="_blank" href="<{$ls.shop_url}>"><{$ls.shop_name|mb_substr:0:15}></a>
   </td></tr>
   </table>
   </td>
   <td>
   <{if ($type == 'breakrules' or $type == 'removed') and $ls.reason}>
        <table class='cuxiao_inner'>
        <tr><td align='left' width='25%'>处理原因:</td><td width='75%' align='left'><{$ls.reason}></td></tr>
        <tr><td align='left'>处理说明:</td><td align='left'><div style='width:160px;word-wrap:break-word;table-layout:fixed;overflow:hidden;'><{$ls.msg}></div></td></tr>
        </table>
   <{/if}>
   </td>
   <td>
      <{if ($type == 'breakrules' or $type == 'removed') and $ls.reason}>
   <{php}>
   echo User::name($this->_tmp_vars['ls']['uid']);
   <{/php}>
   <{/if}>
   </td>
<td align='center'>
<{if $ls.status eq 'removed'}>
<a href="/cuxiao/set/valid/<{$ls.id}>/<{$city_id}>">可恢复</a>
<{/if}>
<{if $ls.status eq 'valid' and ($ls.end_time >=  $current_time)}>
&nbsp;<a  href="javascript:void(0);" onclick="return click_prompt(2,<{$ls.id}>,'<{$ls.title}>');" id="set_<{$ls.id}>">需调整</a>&nbsp
<{/if}>
<{if $ls.status eq 'valid' and ($ls.end_time >=  $current_time)}>
<a href="javascript:void(0);" onclick="return click_prompt(1,<{$ls.id}>,'<{$ls.title}>');" id="set_<{$ls.id}>">删除</a>
<{/if}>
</td>
</tr>
<{/foreach}>
<tr><td colspan="4" style="border:0"><div class='count_left'>共<{$count}>条记录</div><div class='page_right'><{$pagination}></div></td></tr>
</table>
